-
Notifications
You must be signed in to change notification settings - Fork 3.2k
refactor(stackblitz): move html playgrounds to node and vite #4062
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
const indexHtml = 'index.html'; | ||
const files = { | ||
'package.json': JSON.stringify(package_json, null, 2), | ||
'index.ts': defaultFiles[0], | ||
[indexHtml]: defaultFiles[1], | ||
'theme/variables.css': defaultFiles[2], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originally I moved index.ts
and theme/variables.css
under src/
like the other frameworks but if we did that we would have to update all of the playgrounds where these files are overridden like:
ionic-docs/static/usage/v8/theming/always-dark-mode/index.md
Lines 23 to 25 in d9ffaf6
'index.html': javascript_index_html, | |
'index.ts': javascript_index_ts, | |
'theme/variables.css': variables_css, |
I can do this if desired but this would change ~80 files.
This PR migrates the JavaScript playgrounds to use Node and Vite.
Playgrounds I suggest testing: